package com.qijian.maindata.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qijian.common.annotation.JoinField;
import com.qijian.tool.domain.Storage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;

/**
 * 管理流程处理人对象 qm_flowable_ncr_user
 *
 * @author qijian
 * @date 2024-08-16
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("qm_flowable_ncr_user")
public class FlowableNcrUser extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "ID")
    private Long id;

    @JoinField
    @Excel(name = "表头ID")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "表头ID")
    private Long mainId;

    @Excel(name = "父级ID")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "父级ID")
    private Long parentId;

    @Excel(name = "顺序")
    @ApiModelProperty(value = "顺序")
    private Long sort;

    @Excel(name = "用户ID")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @Excel(name = "标题")
    @ApiModelProperty(value = "标题")
    private String theme;

    @Excel(name = "级别")
    @ApiModelProperty(value = "级别")
    private String taskLevel;

    @Excel(name = "用户名称")
    @ApiModelProperty(value = "用户名称")
    private String nickName;

    @Excel(name = "所属部门")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "所属部门")
    private Long deptId;

    @Excel(name = "部门名称")
    @ApiModelProperty(value = "部门名称")
    private String deptName;

    @Excel(name = "签名附件")
    @ApiModelProperty(value = "签名附件")
    private String signFile;

    @Excel(name = "意见")
    @ApiModelProperty(value = "意见")
    private String opinion;

    @Excel(name = "奖惩类型(1-惩罚，2-奖励)")
    @ApiModelProperty(value = "奖惩类型(1-惩罚，2-奖励)")
    private Long rpType;

    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;

    @Excel(name = "奖惩金额")
    @ApiModelProperty(value = "奖惩金额")
    private BigDecimal rpAmount;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "完成时间")
    private Date completeDate;

    @Excel(name = "是否完成")
    @ApiModelProperty(value = "是否完成")
    private Boolean isComplete;

    @Excel(name = "是否开启子任务")
    @ApiModelProperty(value = "是否开启子任务")
    private Boolean openChild;

    @Excel(name = "是否激活")
    @ApiModelProperty(value = "是否激活")
    private Boolean isActivate;

    @Excel(name = "是否本部门责任")
    @ApiModelProperty(value = "是否本部门责任")
    private Boolean bmzr;

    @Excel(name = "状态")
    @ApiModelProperty(value = "${column.columnComment}")
    private String status;

    @Excel(name = "类型")
    @ApiModelProperty(value = "类型")
    private String type;

    @Excel(name = "改善计划")
    @ApiModelProperty(value = "改善计划")
    private String gsjh;

    @Excel(name = "预防措施")
    @ApiModelProperty(value = "预防措施")
    private String yfcs;

    @TableField(exist = false)
    private List<Storage> detailFiles;

    @TableField(exist = false)
    private List<FlowableNcrUser> childList;

    @TableField(exist = false)
    private String zrlsqk;

    private BigDecimal deptLossAmount;

    private BigDecimal deptDeductAmount;

}
